/**
 * 正则表达式
 * author: LeiHao
 * createTime: 2024/01/05
 */

// 验证手机号码
export const phoneReg = /^1\d{10}/;

// 身份证号码验证
export const IDCardReg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;

// 邮箱验证
export const emailReg = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;

// 首尾空格
export const trimReg = /^\s+|\s+$/g;

// 密码规则验证(数字，大写，小写，特殊字符中的三种或3种以上的组合)
export const passwordReg = /^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W_!@#$%^&*`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\\W_!@#$%^&*`~()-+=]+$)(?![0-9\\W_!@#$%^&*`~()-+=]+$)[a-zA-Z0-9\\W_!@#$%^&*`~()-+=]{8,}$/;

// 验证宗地代码
export const landCodeReg = /\d{12}[G|J|Z][A|B|S|X|C|D|E|F|W|Y]\d{5}/;